package com.atguigu.eduservice.controller;

import com.atguigu.commonutils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/edu/user")
@CrossOrigin
public class EduLoginController {
    @PostMapping("/login")
    public R getLogin(){
        return R.ok().data("token","admin");
    }
    @GetMapping("/info")
    public R getInfo(){
        return R.ok().data("roles","admin").data("name","lhl").data("avatar","https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202107%2F17%2F20210717232533_2edcf.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1659173234&t=cf09263426026dd6c4293eae78f112a3");
    }
}
